package com.kofan.shelter.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kofan.shelter.api.bean.KofanEntity;
import lombok.Data;

import java.util.List;


/**
 * <p>
 *
 * </p>
 *
 * @author king
 * @since 2022-03-28
 */

@Data
@TableName("sys_user")
public class User extends KofanEntity {
    private static final long serialVersionUID = 1L;
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private String userId;
    private String userName;
    private String password;
    private String secret;
    private String userTel;
    private String realName;
    private String userGonghao;
    private String userStatus;//
    private String position;
    private String userType;// 用户类型:0系统管理员 1: 平台管理员
    private Integer isEnable;// 是否启用 1：启用 0：不启用
    private String orgId;// 部门id

    @TableField(exist = false)
    private List<String> roleIdList;
}
